package edu.neu.cloud_factory.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import edu.neu.cloud_factory.entity.po.Product;
import edu.neu.cloud_factory.entity.po.ProductType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 产品 Mapper 接口
 * </p>
 *
 * @author halozhy
 * @since 2021-07-15
 */
@Mapper
public interface ProductMapper extends BaseMapper<Product> {

    @Select("select * from t_product ${ew.customSqlSegment} limit #{offset}, #{limit}")
    List<Product> listPage(int offset, int limit, QueryWrapper ew);
}
